package com.hbk.base.component;

import lombok.Data;

@Data
public class ExternalConfig {

    private MysqlConfig mysql;
    private RedisConfig redis;
    private EditorConfig editor;

    @Data
    public static class MysqlConfig {
        private String host;
        private Integer port;
        private String username;
        private String password;
        private String database;
    }

    @Data
    public static class RedisConfig {
        private String host;
        private Integer port;
        private String password;
        private Integer dataIndex;
    }

    @Data
    public static class EditorConfig{
        private String imgDir;
        private String imgPrefix;
    }
}
